package com.yu.footballpromotionliveadmin.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 *  赛事记录表
 */
public class EventRecords implements Serializable {
    private String erno;

    private String notnum;

    private String mtno;

    private String ename;

    private Date stime;

    private Date etime;

    private Date year;

    private String venue;

    private static final long serialVersionUID = 1L;

    public String getErno() {
        return erno;
    }

    public void setErno(String erno) {
        this.erno = erno;
    }

    public String getNotnum() {
        return notnum;
    }

    public void setNotnum(String notnum) {
        this.notnum = notnum;
    }

    public String getMtno() {
        return mtno;
    }

    public void setMtno(String mtno) {
        this.mtno = mtno;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public Date getStime() {
        return stime;
    }

    public void setStime(Date stime) {
        this.stime = stime;
    }

    public Date getEtime() {
        return etime;
    }

    public void setEtime(Date etime) {
        this.etime = etime;
    }

    public Date getYear() {
        return year;
    }

    public void setYear(Date year) {
        this.year = year;
    }

    public String getVenue() {
        return venue;
    }

    public void setVenue(String venue) {
        this.venue = venue;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EventRecords other = (EventRecords) that;
        return (this.getErno() == null ? other.getErno() == null : this.getErno().equals(other.getErno()))
            && (this.getNotnum() == null ? other.getNotnum() == null : this.getNotnum().equals(other.getNotnum()))
            && (this.getMtno() == null ? other.getMtno() == null : this.getMtno().equals(other.getMtno()))
            && (this.getEname() == null ? other.getEname() == null : this.getEname().equals(other.getEname()))
            && (this.getStime() == null ? other.getStime() == null : this.getStime().equals(other.getStime()))
            && (this.getEtime() == null ? other.getEtime() == null : this.getEtime().equals(other.getEtime()))
            && (this.getYear() == null ? other.getYear() == null : this.getYear().equals(other.getYear()))
            && (this.getVenue() == null ? other.getVenue() == null : this.getVenue().equals(other.getVenue()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getErno() == null) ? 0 : getErno().hashCode());
        result = prime * result + ((getNotnum() == null) ? 0 : getNotnum().hashCode());
        result = prime * result + ((getMtno() == null) ? 0 : getMtno().hashCode());
        result = prime * result + ((getEname() == null) ? 0 : getEname().hashCode());
        result = prime * result + ((getStime() == null) ? 0 : getStime().hashCode());
        result = prime * result + ((getEtime() == null) ? 0 : getEtime().hashCode());
        result = prime * result + ((getYear() == null) ? 0 : getYear().hashCode());
        result = prime * result + ((getVenue() == null) ? 0 : getVenue().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", erno=").append(erno);
        sb.append(", notnum=").append(notnum);
        sb.append(", mtno=").append(mtno);
        sb.append(", ename=").append(ename);
        sb.append(", stime=").append(stime);
        sb.append(", etime=").append(etime);
        sb.append(", year=").append(year);
        sb.append(", venue=").append(venue);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}